<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${name}</title>
</head>
<body>
	<div class="searchHead">
		<div class="searchBox">
			<ul>
				<li>
					<span class="sys_icon">姓名：</span> 
					<input class="easyui-textbox big" type="text" name="name" value=""></li>
					<button class="searchbtn" onclick="search()">查询</button>
				</li>
			</ul>
			<div class="clearfix"></div>
		</div>

		<!-- commonds -->
		<div class="commondBox">
			<ul>
				<li onclick="cmd_insert()"><span class="btn_insert">创建</span></li>
				<li onclick="cmd_modify()"><span class="btn_modify">修改</span></li>
				<li onclick="cmd_delete()"><span class="btn_disabled">删除</span></li>
			</ul>
			<div class="clearfix"></div>
		</div>
	</div>
	<!-- grid -->
	<div class="box">
		<div id="datagrid" ></div>
		<!-- form -->
		<div id="dialog" class="formPanel">
			<form id="ff" method="post">
				
					<#list fields as f>
						<#if f.pk>
							<input type="hidden" name="${f.simpleName}" value="">
						</#if>
					</#list>
				
				<ul>
					<#list fields as f>
						<#if !f.pk>
							 <li class="c1">
									<span class="lb1">${f.name}：</span> 
									<input type="text" name="${f.simpleName}"  <#rt/>
											<#lt /><#if f.javaType=="String">	class="easyui-textbox" </#if>   <#rt/>
											<#lt /><#if f.javaType=="Long">	class="easyui-numberbox" </#if>   <#rt/>
											<#lt /><#if f.javaType=="Float">	class="easyui-numberbox" </#if> <#rt/>
											<#lt /><#if f.javaType=="Double">	class="easyui-numberbox" </#if> <#rt/>
											<#lt /><#if f.javaType=="Integer">	class="easyui-numberbox" </#if> <#rt/>
											<#lt /><#if f.javaType=="java.util.Date">class="easyui-datebox" </#if> <#rt/>
										<#lt /><#if !f.nullAble>required</#if> <#rt/>
										<#lt />></li>
								</#if>
					</#list>
					
					 
				</ul>
				<div class="clearfix"></div>
			</form>
			<div id="bb">
				<a class="easyui-linkbutton btn-save" onclick="cmd_save()">保存</a> <a
					class="easyui-linkbutton btn-cancel"
					onclick="$$('#dialog').dialog('close');">关闭</a>
			</div>
		</div>
		<script type="text/javascript" src="${"$"}{ctx}/res/js/gen/${sname}.js"></script>
</body>
</html>